<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <meta http-equiv="X-UA-Compatible" content="ie=edge" />
    <meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
    <meta name="format-detection" content="telephone=no" />
    <title>企业认证绑卡</title>
    <link rel="stylesheet" href="../../css/reset.css" />
    <style>
        body {
            width: 100%;
            background-color: #fff;
            font-size: 0.26rem;
            -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
            font-family: Helvetica;
            color: #333333;
            height: auto;
        }

        .checkmessage {
            width: 100%;
            height: auto;
            display: flex;
            display: -webkit-flex;
            flex-direction: column;
            padding-left: 0.24rem;
            box-sizing: border-box;
            border-top: 0.2rem solid #f7f7f7;
            box-sizing: border-box;
        }

        .checkmessage div {
            width: 100%;
            border-bottom: 1px solid #e5e5e5;
            box-sizing: border-box;
            padding-bottom: 0.1rem;
        }

        .checkmessage input {
            outline: none;
            border: none;
            display: inline-block;
            width: 100%;
            height: 0.92rem;
            box-sizing: border-box;
            font-size: 0.26rem;
        }

        .nextbutton {
            width: 6.88rem;
            height: 0.9rem;
            text-align: center;
            line-height: 0.9rem;
            background-color: #ffd203;
            outline: none;
            border: none;
            border-radius: 0.1rem;
            margin-top: 0.8rem;
            margin-left: calc((100% - 6.88rem) / 2);
            font-size: 0.28rem;
        }

        .titName {
            width: 100%;
            height: auto;
            display: flex;
            display: -webkit-flex;
            align-items: center;
            justify-content: flex-start;
            position: relative;
            padding-left: 0.2rem;
            margin-top: 0.2rem;
            font-size: 0.28rem;
            color: #181818;
            box-sizing: border-box;
        }

        .titName::before {
            position: absolute;
            left: 0;
            display: inline-block;
            content: "";
            width: 0.06rem;
            height: 0.28rem;
            background-color: #ffd203;
        }
        input::placeholder{
            color: #ADADAD;
        }
    </style>
</head>

<body>
    <div class="checkmessage">
        <p class="titName">
            企业信息
        </p>
        <div>
            <input type="text" name="" id="userName" placeholder="请输入企业名称，认证后不能修改" maxlength="30" />
        </div>
        <div>
            <input type="text" name="" id="userNumber" placeholder="请输入营业执照统一社会信用代码，认证后不可修改" maxlength="30" />
        </div>
        <p class="titName" style="margin-top:0.5rem;">
            委托人信息
        </p>
        <div>
            <input type="text" name="" id="clientName" placeholder="请输入委托人姓名，认证后不能修改" maxlength="30" />
        </div>
        <div>
            <input type="text" name="" id="clientIdNum" placeholder="请输入委托人身份证号，认证后不能修改" maxlength="30" />
        </div>
    </div>
    <p class="showText" style="padding:0.24rem;display: none;">
        注：若信息有误请联系客服
    </p>
    <button class="nextbutton">下一步</button>
    <script src="../../script/autosize.js"></script>
    <script src="../../script/fastclick.js"></script>
    <script src="../../script/jquery_three_two_one.js"></script>
    <script src="../../script/app.js"></script>
</body>

</html>
<script>
    apiready = function () {
        var app = new APP();
        var goMyPage;
        if (api.pageParam.goMyPage != undefined && api.pageParam.goMyPage) {
            goMyPage = api.pageParam.goMyPage;
        }
        $(".nextbutton").on("click", function () {
            var name = $("#userName").val();
            if (!name) {
                app.toast("企业名称不能为空");
                return;
            }
            var card = $("#userNumber").val();
            if (!card) {
                app.toast("营业执照代码不能为空");
                return;
            }
            var clientName = $("#clientName").val();
            if (!clientName) {
                app.toast("委托人姓名不能为空");
                return;
            }
            var clientIdNum = $("#clientIdNum").val();
            if (!clientIdNum) {
                app.toast("委托人身份证号不能为空");
                return;
            }
            var pageValue = {
                name: "priseuploadpicture",
                subpage: "my/priseuploadpicture",
                title: "上传企业证件",
                param: {
                    pageName: "priseuploadpicture",
                    userName: name.trim(),
                    userCardNumber: card.trim(),
                    clientName:clientName.trim(),
                    clientIdNum:clientIdNum.trim(),
                    goMyPage: goMyPage
                }
            }
            app.setNavBarAttr(pageValue);
        });

        app.listen("auth_commit_success", function () {
            app.closeW();
        });
        app.headerMap();
    };
</script>